<?php
/*
 * check images 
 * @param : $image
 */
function checkImage($image) {
	try {
		$info = getimagesize($image);
		$size = preg_split('/"/', $info[3]);
		print_r($size);
	} catch (Exception $e) {
	    var_dump($e);
	}
}
$path = 'C:\\Users\\PC\\Pictures\\';
if( opendir($path) ) {
	foreach ( glob($path . '*.*') as $image ) {
	    checkImage($image);
	}
} else {
	die('path not exists');
}
